/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.workorder.entity.Holiday
   Module Description   :

   Date Created      : 2010/1/20
   Original Author   : andy.chuang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.workorder.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;
import com.yaodian100.core.common.entity.CommonEntity;

/**
 * @author andy.chuang
 *
 */
@Entity
@Table(name="CRM_WORKORDER_HOLIDAY")
public class Holiday extends CommonEntity {
    /**
     * 
     */
    private static final long serialVersionUID = -8989752680741941686L;
    private Long id;
    private Long menuOptionId;
    private Date day;
    private String name;
    /**
     * @return the id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_holiday")
    @SequenceGenerator(name = "seq_holiday", sequenceName = "SEQ_HOLIDAY")
    public Long getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
    /**
     * @return the menuOptionId
     */
    
    public Long getMenuOptionId() {
        return menuOptionId;
    }
    /**
     * @param menuOptionId the menuOptionId to set
     */
    public void setMenuOptionId(Long menuOptionId) {
        this.menuOptionId = menuOptionId;
    }
    /**
     * @return the day
     */
    public Date getDay() {
        return day;
    }
    /**
     * @param day the day to set
     */
    public void setDay(Date day) {
        this.day = day;
    }
    /**
     * @return the name
     */
    @Column(length=100)
    public String getName() {
        return name;
    }
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
}
